//搜索框
$('.search-input').click(function(){
	$('.search-item').hide();
	$('.search-text').show();
	$('.img-search').show();
	$('.img-close').show();
	$('.cancel-btn').show();
	$('.search-text').focus();
})

$('.img-close').click(function(){
	$('.search-text').val('')
})

$('.cancel-btn').click(function(){
	$('.search-item').show();
	$('.search-text').hide();
	$('.img-search').hide();
	$('.img-close').hide();
	$('.cancel-btn').hide();
})

$(document).delegate('.single-selected-box','click', function () { 
	var obj = $(this).children('span');
	if(obj.hasClass('nav-selected')){
		obj.removeClass('nav-selected');
		$(this).children('.single-selected-img').hide();
	}else{
		obj.addClass('nav-selected');
		$(this).children('.single-selected-img').show();
		$(this).parent().siblings().children().children('span').removeClass('nav-selected');
		$(this).parent().siblings().children().children('.single-selected-img').hide();
	}
})

$(document).delegate('.multi-selected-box','click', function () { 
	var obj = $(this).children('span');
	if(obj.hasClass('nav-selected')){
		obj.removeClass('nav-selected');
		$(this).children('.multi-selected-img1').hide();
		$(this).children('.multi-selected-img2').show();
	}else{
		obj.addClass('nav-selected');
		$(this).children('.multi-selected-img1').show();
		$(this).children('.multi-selected-img2').hide();
	}
})